<?php
/**
 * Created by PhpStorm.
 * User: fengsenhua
 * Date: 2019/2/12
 * Time: 11:55
 */

namespace app\api\controller\v1;


use app\api\service\AppToken;
use app\api\service\UserToken;
use app\api\validate\AppTokenGet;
use app\api\validate\TokenGet;

class Token
{
    public function getToken($code=''){
        (new TokenGet())->goCheck();
        $u=new UserToken($code);
        $token=$u->get();
        return [
          'token'=>$token
        ];
    }
}